<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html lang="zh-CN">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1"/>
<meta name="renderer" content="webkit"/>
<meta property="qc:admins" content="15317273575564615446375"/>
<meta property="og:image" content="/luntanshequ/Public/home/img/touch-icon.png"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
<meta name="alexaVerifyID" content="LkzCRJ7rPEUwt6fVey2vhxiw1vQ"/>
<meta name="apple-itunes-app" content="app-id=958101793, app-argument=">
<title>SegmentFault</title>
<meta name="description" content="SegmentFault ( www.sf.gg ) 是中国领先的开发者技术社区。 我们希望为编程爱好者提供一个纯粹、高质的技术交流的平台，与开发者一起学习、交流与成长，创造属于开发者的时代！"/>
<meta name="keywords" content="SegmentFault,黑客马拉松,IT技术社区,编程社区,技术问答,技术文章,技术笔记,技术活动,程序员招聘,开发者,程序员,极客,编程,代码,开源,hackathon"/>
<link rel="shortcut icon" href="/luntanshequ/Public/home/img/favicon.ico"/>
<link rel="apple-touch-icon" href="/luntanshequ/Public/home/img/touch-icon.png">
<meta name="msapplication-TileColor" content="#009a61"/>
<meta name="msapplication-square150x150logo" content="/luntanshequ/Public/home/img/touch-icon.png"/>
<link rel="stylesheet" href="/luntanshequ/Public/home/css/global.css"/>
<link rel="stylesheet" href="/luntanshequ/Public/home/css/qa.css"/>
<link rel="stylesheet" href="/luntanshequ/Public/home/css/tag.css"/>
<link rel="stylesheet" href="/luntanshequ/Public/home/css/responsive.css"/>
<link rel="stylesheet" href="/luntanshequ/Public/home/css/user.css"/>
</head>
<body data-mod="qa" class="qa-index">
<img id="icon4weChat" style="height: 0;width: 0;" data-src="/luntanshequ/Public/home/img/touch-icon-512.png">
<img id="icon4weChat" data-src="./img/touch-icon-512.png">
<div class="global-nav sf-header">
<nav class="container nav">
    <div class="hidden-sm hidden-lg hidden-md">
        <div class="sf-header__logo sf-header__logo--response">
            <h1><a></a></h1>
        </div>
        <div class="dropdown m-menu">
        <a href="javascript:void(0);" id="dLabel" class="visible-xs-block m-toptools" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
            <span class="glyphicon glyphicon-align-justify"></span>
            <span class="mobile-menu__unreadpoint"></span>
        </a>
        <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
            <li class="mobile-menu__item"><a href="/questions/newest">问答</a></li>
            <li class="mobile-menu__item"><a href="/blogs">文章</a></li>
            <li class="mobile-menu__item"><a href="/user/note">笔记</a></li>
            <li class="mobile-menu__item"><a href="/jobs">职位</a></li>
            <li class="mobile-menu__item"><a href="/events">活动</a></li>
            <li class="mobile-menu__item"><a href="/tags">标签</a></li>
            <li class="mobile-menu__item"><a href="/users">榜单</a></li>
            <li class="mobile-menu__item"><a href="/sites">子站</a></li>
        </ul>
        </div>
        <a href="/user/login" class="visible-xs-block pull-right m-ask m-toptools">
            <span class="glyphicon glyphicon-log-in"></span>
        </a>
    </div>

    <div class="row hidden-xs">
    <div class="col-sm-9 col-md-7 col-lg-6">
        <div class="sf-header__logo">
            <h1><a href="<?php echo U('Home/Index/Index');?>">SegmentFault</a></h1>
        </div>
        <ul class="menu list-inline pull-left hidden-xs">
            <li class="menu__item"><a href="/questions">问答</a></li>
            <li class="menu__item"><a href="/blogs">文章</a></li>
            <li class="menu__item"><a href="/notes">笔记</a></li>
            <li class="menu__item"><a href="/jobs">职位</a></li>
            <li class="menu__item"><a href="/events">活动</a></li>
        </ul>
    </div>
    <div class="col-sm-3 col-md-5 col-lg-6 text-right">
        <form action="<?php echo U('home/index/search');?>" class="header-search  hidden-sm hidden-xs mr20" method="get">
            <button class="btn btn-link">
                <span class="sr-only">搜索</span>
                <span class="glyphicon glyphicon-search"></span>
            </button>
            <input id="searchBox" name="keyword" type="text" value="<?php echo $_GET['keyword']?>" placeholder="输入关键字搜索" class="form-control" value=""/>
        </form>

        <?php if(empty($_SESSION['uid'])): ?><ul class="opts list-inline hidden-xs">
                <li class="opts__item message has-unread">
                    <a target="_blank" href="/tour"><span class="sr-only">消息</span><span id="messageCount" class="fa fa-hand-peace-o"></span></a>
                </li>
                <li class="opts__item">
                    <a href="<?php echo U('Home/Register/Register');?>" class="em ml10">注册 &middot; 登录</a>
                </li>
            </ul>
        <?php else: ?>

            <!-- 个人中心.start -->
            <ul class="opts list-inline hidden-xs">
                <li class="opts__item dropdown hoverDropdown write-btns">
                    <a class="dropdownBtn" data-toggle="dropdown" href="/ask">撰写<span class="caret"></span></a>
                    <ul class="dropdown-menu dropdown-menu-right ">
                        <li><a href="<?php echo U('home/user/askindex');?>">提问题</a></li>
                        <li><a href="/write">写文章</a></li>
                        <li><a href="/record">记笔记</a></li>
                        <li class="divider"></li>
                        <li><a href="/user/draft">草稿箱</a></li>
                    </ul>
                </li>
                <li class="opts__item message has-unread ">
                    <a id="dLabel" class="dropdown-toggle-message" href="javascript:;">
                        <span class="sr-only">消息</span>
                        <span id="messageCount" class="fa fa-bell-o"></span>
                    </a>
                    <div class="opts__item--message hide">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <ul class="nav nav-tabs nav-tabs-message">
                                    <li role="presentation" class="active">
                                        <a href="#messageGeneral" id="home-tab" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true"><i class="fa fa-bullhorn"></i><span class="notice-dot hide notice-dot-general"></span></a>
                                    </li>
                                    <li role="presentation" class="">
                                        <a href="#messageRanked" id="home-tab" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true"><i class="fa fa-thumbs-o-up"></i><span class="notice-dot hide notice-dot-ranked"></span></a></li>
                                    <li role="presentation" class="">
                                        <a href="#messageFollowed" id="home-tab" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true"><i class="fa fa-user-plus"></i><span class="notice-dot hide notice-dot-followed"></span></a>
                                    </li>
                                    <li role="presentation" class="">
                                        <a href="#messageInbox" id="home-tab" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true"><i class="fa fa-commenting"></i><span class="notice-dot hide notice-dot-inbox"></span></a>
                                    </li>
                                </ul>
                            </div>
                            <div class="panel-body">
                                <div class="tab-content">
                                    <div role="tabpanel" class="tab-pane active" id="messageGeneral">
                                        <ul class="mCustomScrollbar-message mCustomScrollbar _mCS_2 mCS-autoHide mCS_no_scrollbar" data-proto="general" data-mcs-theme="minimal-dark" style="position: relative; overflow: visible;">
                                            <div id="mCSB_2" class="mCustomScrollBox mCS-minimal-dark mCSB_vertical mCSB_outside" style="max-height: 270px;" tabindex="0">
                                                <div id="mCSB_2_container" class="mCSB_container mCS_y_hidden mCS_no_scrollbar_y" style="position: relative; top: 0px; left: 0px;" dir="ltr">
                                                    <li class="bg-warning">欢迎你加入 SegmentFault 社区!  <a href="https://segmentfault.com/tour">新手一览 ➜</a>&nbsp;<a href="/u/harmon?_ea=902966"></a></li>
                                                </div>
                                            </div>
                                            <div id="mCSB_2_scrollbar_vertical" class="mCSB_scrollTools mCSB_2_scrollbar mCS-minimal-dark mCSB_scrollTools_vertical" style="display: none;">
                                                <div class="mCSB_draggerContainer">
                                                    <div id="mCSB_2_dragger_vertical" class="mCSB_dragger" style="position: absolute; min-height: 50px; height: 0px; top: 0px;" oncontextmenu="return false;">
                                                        <div class="mCSB_dragger_bar" style="line-height: 50px;"></div>
                                                    </div>
                                                    <div class="mCSB_draggerRail"></div>
                                                </div>
                                            </div>
                                        </ul>
                                    </div>
                                    <div role="tabpanel" class="tab-pane" id="messageRanked">
                                        <ul class="mCustomScrollbar-message mCustomScrollbar _mCS_3 mCS-autoHide mCS_no_scrollbar" data-proto="ranked" data-mcs-theme="minimal-dark" style="position: relative; overflow: visible;">
                                            <div id="mCSB_3" class="mCustomScrollBox mCS-minimal-dark mCSB_vertical mCSB_outside" style="max-height: 270px;" tabindex="0">
                                                <div id="mCSB_3_container" class="mCSB_container mCS_y_hidden mCS_no_scrollbar_y" style="position: relative; top: 0px; left: 0px;" dir="ltr"></div>
                                            </div>
                                            <div id="mCSB_3_scrollbar_vertical" class="mCSB_scrollTools mCSB_3_scrollbar mCS-minimal-dark mCSB_scrollTools_vertical" style="display: none;">
                                                <div class="mCSB_draggerContainer">
                                                    <div id="mCSB_3_dragger_vertical" class="mCSB_dragger" style="position: absolute; min-height: 50px; top: 0px;" oncontextmenu="return false;">
                                                        <div class="mCSB_dragger_bar" style="line-height: 50px;"></div>
                                                    </div>
                                                    <div class="mCSB_draggerRail"></div>
                                                </div>
                                            </div>
                                        </ul>
                                    </div>
                                    <div role="tabpanel" class="tab-pane" id="messageFollowed">
                                        <p class="follow-tips">他们最近关注了你</p>
                                        <ul class="mCustomScrollbar-message mCustomScrollbar _mCS_4 mCS-autoHide mCS_no_scrollbar" data-proto="followed" data-mcs-theme="minimal-dark" style="position: relative; overflow: visible;">
                                            <div id="mCSB_4" class="mCustomScrollBox mCS-minimal-dark mCSB_vertical mCSB_outside" style="max-height: 270px;" tabindex="0">
                                                <div id="mCSB_4_container" class="mCSB_container mCS_y_hidden mCS_no_scrollbar_y" style="position: relative; top: 0px; left: 0px;" dir="ltr"></div>
                                            </div>
                                            <div id="mCSB_4_scrollbar_vertical" class="mCSB_scrollTools mCSB_4_scrollbar mCS-minimal-dark mCSB_scrollTools_vertical" style="display: none;">
                                                <div class="mCSB_draggerContainer">
                                                    <div id="mCSB_4_dragger_vertical" class="mCSB_dragger" style="position: absolute; min-height: 50px; top: 0px;" oncontextmenu="return false;">
                                                        <div class="mCSB_dragger_bar" style="line-height: 50px;"></div>
                                                    </div>
                                                    <div class="mCSB_draggerRail"></div>
                                                </div>
                                            </div>
                                        </ul>
                                    </div>
                                    <div role="tabpanel" class="tab-pane" id="messageInbox">
                                        <p class="follow-tips">他们给你发了私信</p>
                                        <ul class="mCustomScrollbar-message mCustomScrollbar _mCS_5 mCS-autoHide mCS_no_scrollbar" data-proto="inbox" data-mcs-theme="minimal-dark" style="position: relative; overflow: visible;">
                                            <div id="mCSB_5" class="mCustomScrollBox mCS-minimal-dark mCSB_vertical mCSB_outside" style="max-height: 270px;" tabindex="0">
                                                <div id="mCSB_5_container" class="mCSB_container mCS_y_hidden mCS_no_scrollbar_y" style="position: relative; top: 0px; left: 0px;" dir="ltr">
                                                    <p class="text-center">没有人给你发私信</p>
                                                </div>
                                            </div>
                                            <div id="mCSB_5_scrollbar_vertical" class="mCSB_scrollTools mCSB_5_scrollbar mCS-minimal-dark mCSB_scrollTools_vertical" style="display: none;">
                                                <div class="mCSB_draggerContainer">
                                                    <div id="mCSB_5_dragger_vertical" class="mCSB_dragger" style="position: absolute; min-height: 50px; top: 0px;" oncontextmenu="return false;">
                                                        <div class="mCSB_dragger_bar" style="line-height: 50px;"></div>
                                                    </div>
                                                    <div class="mCSB_draggerRail"></div>
                                                </div>
                                            </div>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <div class="panel-footer">
                                <div class="row">
                                    <div class="col-sm-6">
                                        <a href="javascript:;" class="message-ingore-all"><span class="glyphicon glyphicon-ok-sign"></span>全部标记为已读</a>
                                    </div>
                                    <div class="col-sm-6">
                                        <a class="opts__item--message-view-all" href="/user/notifications">查看全部 »</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </li>
                <li class="opts__item user dropdown hoverDropdown">
                    <?php if(empty($_SESSION['face'])): ?><a class="dropdownBtn user-avatar"  data-toggle="dropdown" style="background-image: url('/luntanshequ/Public/home/img/user.png')" href="/u/harmon"></a>
                    <?php else: ?>
                         <a class="dropdownBtn user-avatar"  data-toggle="dropdown" style="background-image: url('/luntanshequ/<?php echo $_SESSION['face'] ?>')" href="/u/harmon"></a><?php endif; ?>
                    
                    <ul class="dropdown-menu dropdown-menu-right">
                        <li><a href="<?php echo U('home/User/Userhome',array('uid'=> $_SESSION['uid'] ));?>">我的主页</a></li>
                        <li><a href="<?php echo U('home/User/Userhome');?>">我的档案</a></li>
                        <li><a href="/user/settings">账号设置</a></li>
                        <li><a href="<?php echo U('Home/Register/loginOut');?>">退出</a></li>
                        <li class="divider"></li>
                        <li><a href="https://board.segmentfault.com/">建议反馈</a></li>
                        <li><a class="js__action--complain" href="javascript:void(0);">用户申诉</a></li>
                    </ul>
                </li>
            </ul>
        <!-- 个人中心.end --><?php endif; ?>
    </div>
    </div>
</nav>
</div>

<div class="global-navTags">
<div class="container">
    <nav class=" nav">
      <ul class="nav__list">
        <li class="nav__item"><a href="<?php echo U('home/index/index');?>" class="active"><i class="fa fa-home"></i>home</a></li>
        <li class="nav__item"><a href="#"><i class="fa fa-list-alt"></i>feed</a></li>
        <li class="nav__item nav__item--split"><a><span class="split"></span></a></li>
        <?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li class="nav__item tag-nav__item"><a href="<?php echo U("home/cate/index",array('cid'=>$vo["id"]));?>"><?php echo ($vo["cname"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>

            
        
        <li class="nav__item nav__item--more" data-open="0">
          <a class="nav__item--more-link" href="/tags">
            <div class="tag__more">
                <i class="tag__more--icon"></i><i class="tag__more--icon"></i><i class="tag__more--icon"></i>
            </div>
          </a>
        </li>
      </ul>
      <div class="tag-mgr__box hide">
        <input class="tag-mgr__query" type="text" placeholder="搜索关注的标签" data-tags='null'>
        <div class="mCustomScrollbar" data-mcs-theme="minimal-dark">
          <ul class="tag-mgr__list"></ul>
        </div>
        <a href="/tags" class="btn btn-primary btn-sm tag-mgr__btn">标签管理</a>
      </div>
    </nav>
</div>
</div>



<script type="text/javascript" src="/luntanshequ/Public/js/jquery-2.0.2.js"></script>
<script type="text/javascript" src="/luntanshequ/Public/ueditor/ueditor.config.js"></script>    
<script type="text/javascript" src="/luntanshequ/Public/ueditor/ueditor.all.min.js"></script>
<script>
$(function(){
    var ue = UE.getEditor('container',{
        serverUrl :'<?php echo U("Home/user/ueditor");?>'
    });
})
</script>
<input type="hidden" value="<?php echo $_SESSION['uid'] ?>" id="setsession">
<div class="wrap">

    <div class="post-topheader">
        <div class="container">
            <div class="row">
                <div class="col-md-9 col-sm-8 col-xs-12">
                    <span class="post-topheader__title--icon-symbol">问</span>
                    <div class="post-topheader__info">
                        <h1 class="h3 post-topheader__info--title" id="questionTitle" data-id="1010000005768307">
                            <a href="/q/1010000005768307"><?php echo ($question['title']); ?></a>
                        </h1>
                        <ul class="taglist--inline inline-block question__title--tag mr10">
                            <?php if(is_array($cateTagArr)): $i = 0; $__LIST__ = $cateTagArr;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li class="tagPopup mb5">
                                    <a class="tag" href="/t/express" data-toggle="popover" data-img="" data-placement="top" data-original-title="express" data-id="1040000000166256"><?php echo ($vo["cname"]); ?></a>
                                </li><?php endforeach; endif; else: echo "" ;endif; ?> 
                        </ul>
                        <div class="question__author">
                            <a href="/u/smoke" class="mr5"><strong><?php echo ($question['username']); ?></strong></a>
                            2 天前提问<span class="hidden-xs"></span>
                        </div>
                    </div>
                </div>

                <div class="col-md-3 col-sm-4 col-xs-12 hidden-xs">
                    <ul class="post-topheader__side list-unstyled">
                        <li>
                            <button type="button" id="sideFollow" class="btn btn-success btn-sm" data-id="1010000005768307" data-do="follow" data-type="question" data-toggle="tooltip" data-placement="right" title="" data-original-title="关注后将获得更新提醒">关注</button>
                            <strong><?php echo ($question['focus_num']); ?></strong> 关注
                        </li>
                        <li>
                            <button type="button" id="sideBookmark" class="btn btn-default btn-sm" data-id="1010000005768307" data-type="question">收藏</button>
                            <strong id="sideBookmarked"><?php echo ($question['fav_num']); ?></strong> 收藏，<strong class="no-stress"><?php echo ($question['view']); ?></strong> 浏览
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <!-- end .post-topheader -->

    <div class="container mt30">
        <div class="row">
            <div class="col-xs-12 col-md-9 main">
                <article class="widget-question__item">
                    <div class="post-col">
                        <div class="widget-vote" id="question_cate" clickType="question" dataid="<?php echo $_GET['qid'] ?>">
                            <button type="button" class="like" data-id="1010000005768307" data-type="question" data-do="like" data-toggle="tooltip" data-placement="top" title="" data-original-title="问题对人有帮助，内容完整，我也想知道答案">
                            <span class="sr-only">问题对人有帮助，内容完整，我也想知道答案</span>
                            </button>
                            <span class="count"><?php echo ($question['vote_num']); ?></span>
                            <button type="button" class="hate" data-id="1010000005768307" data-type="question" data-do="hate" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="问题没有实际价值，缺少关键内容，没有改进余地">
                            <span class="sr-only">问题没有实际价值，缺少关键内容，没有改进余地</span>
                            </button>
                        </div>
                        <!-- end .widget-vote -->
                    </div>

                    <div class="post-offset">
                        <div class="question fmt" data-id="1010000005768307">                                        
                 <?php echo ($question['content']); ?>
<!-- <pre class="hljs"><div class="widget-codetool" style="display:none;"><button class="selectCode btn btn-xs">全选</button><button href="javascript:void(0);" class="copyCode btn btn-xs" data-clipboard-text="返回页面后不更新数据。（删掉的数据还显示）" data-toggle="tooltip" data-placement="bottom" title="">复制</button><button href="javascript:void(0);" class="saveToNote btn btn-xs">放进笔记</button></div><code style="word-break: break-word; white-space: initial;">返回页面后不更新数据。（删掉的数据还显示）</code></pre> -->
                        </div>                                                                                           
                        <div class="row">
                            <div class="post-opt col-md-8">
                                <ul class="list-inline mb0">
                                    <li><a href="/q/1010000005768307"><?php echo date("Y-m-d h:i:s",$question['create_time']) ?>  提问</a></li>
                                    <li><a href="javascript:void(0);" class="comments" data-id="1010000005768307" data-target="#comment-1010000005768307">评论</a></li>
                                    <!-- <li class="edit-btn" data-original-title="" title="">
                                        <a class="inviteBtn" href="javascript:;" data-title="express执行mysql删除语句后，刷新页面不更新" data-url="http://sfau.lt/bNymLn" data-id="1010000005768307">邀请回答</a>
                                    </li> -->
                                </ul>
                            </div>   
                        </div>
                        <div class="widget-comments hidden" id="comment-1010000005768307" data-id="1010000005768307">
                            <div class="widget-comments__form row">
                                <div class="col-md-12">请先 <a class="commentLogin" href="javascript:void(0);">登录</a> 后评论</div>
                            </div><!-- /.widget-comments__form -->
                        </div><!-- /.widget-comments -->
                    </div>
                    <!-- end .post-offset -->
                </article>

                <div class="widget-answers">
                    <div class="btn-group pull-right" role="group">
                        <a href="/q/1010000005768307#answers-title" id="sortby-rank" class="btn btn-default btn-xs active">默认排序</a>
                        <a href="?sort=created#answers-title" id="sortby-created" class="btn btn-default btn-xs">时间排序</a>
                    </div>

                    <h2 class="title h4 mt30 mb20 post-title" id="answers-title"><?php echo ($question['answer_num']); ?> 个回答</h2>
                    <div></div>

                    <?php if(is_array($answerResult)): $i = 0; $__LIST__ = $answerResult;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$answervo): $mod = ($i % 2 );++$i;?><article class="clearfix widget-answers__item" id="a-1020000005776083">
                            <div class="post-col">
                                <div class="widget-vote" id="answer_cate" clickType="answer" dataid="<?php echo $answervo["id"] ?>" >
                                    <button type="button" class="like" data-id="1020000005776083" data-type="answer" data-do="like" data-toggle="tooltip" data-placement="top" title="" data-original-title="答案对人有帮助，有参考价值">
                                        <span class="sr-only">答案对人有帮助，有参考价值</span>
                                    </button>
                                    <span class="count"><?php echo ($answervo["vote_num"]); ?></span>
                                    <button type="button" class="hate" data-id="1020000005776083" data-type="answer" data-do="hate" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="答案没帮助，是错误的答案，答非所问">
                                        <span class="sr-only">答案没帮助，是错误的答案，答非所问</span>
                                    </button>
                                </div>
                            </div>

                            <div class="post-offset">
                                <div class="answer fmt" data-id="1020000005776083">
                                    <p><?php echo ($answervo["content"]); ?></p>
                                </div>        
                                <div class="row answer__info--row">
                                    <div class="post-opt col-md-8 col-sm-8 col-xs-10">
                                        <ul class="list-inline mb0">
                                            <li><a> <?php echo date("Y-m-d h:i:s",$answervo['create_time'])?>  回答</a> <span class="text-muted"></span></li>
                                            <li><a href="javascript:void(0);" class="comments" data-id="1020000005776083" data-target="#comment-1020000005776083">评论</a></li>
                                        </ul>
                                    </div>
                                    <div class="col-md-2 col-sm-2 col-xs-2 answer__info--author-avatar">
                                        <a class="mr10" href="/u/runforlove"><img class="avatar-32" src="/luntanshequ/<?php echo ($answervo["face"]); ?>" alt=""></a>
                                    </div>
                                    <div class="col-md-2 col-sm-2 hidden-xs answer__info--author">
                                        <div class=" answer__info--author-warp">
                                            <a class="answer__info--author-name" title="菩提旭光" href="/u/runforlove"><?php echo ($answervo["username"]); ?></a>
                                            <!-- <span class="answer__info--author-rank">892 声望</span> -->
                                        </div>
                                    </div>
                                </div>


                                <div class="widget-comments hidden" id="comment-1020000005776083" data-id="1020000005776083">
                                    <div class="widget-comments__form row">
                                        <div class="col-md-12">请先 <a class="commentLogin" href="javascript:void(0);">登录</a> 后评论</div>
                                    </div><!-- /.widget-comments__form -->
                                </div><!-- /.widget-comments -->
                            </div>
                        </article><!-- /article --><?php endforeach; endif; else: echo "" ;endif; ?>
                    
                    <div class="text-center">
                    </div>
                </div><!-- /.widget-answers -->
                <div>
                    <h4>撰写答案</h4>
                    <input type="hidden" id="draftId" value="">
                    <input type="hidden" value="1010000005768307" id="questionId">
                    <form action="<?php echo U('home/Blogs/submitAnswer');?>" method="post" class="editor-wrap">
                        <!-- <div class="editor" id="questionText"> -->
                        
                        <input type="hidden" value="<?php echo $_GET['qid'] ?>" name="qid">
                        <div id="container"  placeholder="撰写答案..."></div>
                        <!-- </div> -->
                        <div id="answerSubmit" class="mt15 clearfix">
                            <div class="checkbox pull-left">
                                <label><input type="checkbox" class="" id="shareToWeibo">同步到新浪微博</label>
                            </div>
                            <div class="pull-right">
                                <span id="editorStatus" class="hidden text-muted"></span>
                                <a id="dropIt" href="javascript:void(0);" class="mr10 hidden">[舍弃]</a>
                                <button type="submit" id="answerIt" data-id="1010000005768307" class="btn btn-lg btn-primary ml20">提交回答</button>
                            </div>
                        </div>
                    </form>
                </div>
               
            </div>
            <!-- /.main -->

            <div class="col-xs-12 col-md-3 side">
                <div data-type="widget" data-api="/api/bookmarkArchive/hots" data-api-overwrite="/api/bookmarkArchive/1010000005768307/related">
                    <div class="widget-box widget-box--bookmark no-border">
                        <h4 class="widget-box__title">相关收藏夹 <a id="widgetBookmarkRefresh" class="userstab pull-right" href="javascript:;">换一组</a></h4>
                        <ul class="widget-links list-unstyled media">
                            <li class="widget-links__item">
                                <img class="pull-left pattern pattern-13 mr10" src="https://sf-static.b0.upaiyun.com/v-576b52d9/global/img/pattern/4.svg" width="32">
                                <div class="media-body">
                                    <a target="_blank" class="ellipsis mr0" href="/bookmark/1230000002879194">node</a>
                                    <p class="mb0">
                                        <span>9</span> 个条目 <span class="division">|</span> <span>0</span> 人关注
                                    </p>
                                </div>
                            </li>
                    
                            <li class="widget-links__item">
                                <img class="pull-left pattern pattern-11 mr10" src="https://sf-static.b0.upaiyun.com/v-576b52d9/global/img/pattern/8.svg" width="32">
                                <div class="media-body">
                                    <a target="_blank" class="ellipsis mr0" href="/bookmark/1230000003998558">nodejs</a>
                                    <p class="mb0">
                                        <span>240</span> 个条目 <span class="division">|</span> <span>0</span> 人关注
                                    </p>
                                </div>
                            </li>
                    
                            <li class="widget-links__item">
                                <img class="pull-left pattern pattern-11 mr10" src="https://sf-static.b0.upaiyun.com/v-576b52d9/global/img/pattern/9.svg" width="32">
                                <div class="media-body">
                                    <a target="_blank" class="ellipsis mr0" href="/bookmark/1230000003823169">nodejs</a>
                                    <p class="mb0">
                                        <span>15</span> 个条目 <span class="division">|</span> <span>0</span> 人关注
                                    </p>
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>

                <div class="widget-box no-border">
                    <h2 class="h4 widget-box__title">相似问题</h2>
                    <ul class="widget-links list-unstyled">
                        <li class="widget-links__item">
                            <a title="Node.js Async.js结合node-mysql使用的疑问" href="/q/1010000004180541">Node.js Async.js结合node-mysql使用的疑问</a>
                            <small class="text-muted">1 回答</small>
                        </li>
                        <li class="widget-links__item">
                            <a title="node.js express mysql redis 你们是怎么分层的？" href="/q/1010000004571516">node.js express mysql redis 你们是怎么分层的？</a>
                        </li>
                        <li class="widget-links__item">
                            <a title="node.js用express连接MySQL出现了bug" href="/q/1010000004438635">node.js用express连接MySQL出现了bug</a>
                            <small class="text-muted">3 回答</small>
                        </li>
                        <li class="widget-links__item">
                            <a title="node.js mysql Cannot find module &amp;quot;net&amp;quot; 和 &amp;quot;tls&amp;quot;和&amp;quot;fs&amp;quot; 的问题" href="/q/1010000005762632">node.js mysql Cannot find module "net" 和 "tls"和"fs" 的问题</a>
                            <small class="text-muted">1 回答 | 已解决</small>
                        </li>
                        <li class="widget-links__item">
                            <a title="node.js 导入 mysql出问题" href="/q/1010000004693920">node.js 导入 mysql出问题</a>
                            <small class="text-muted">1 回答</small>
                        </li>
                        <li class="widget-links__item">
                            <a title="node-mysql如何获取某个表中全部字段" href="/q/1010000002726838">node-mysql如何获取某个表中全部字段</a>
                            <small class="text-muted">1 回答 | 已解决</small>
                        </li>
                        <li class="widget-links__item">
                            <a title="nodejs 使用node-mysql 中间件的普通连接与连接池连接哪个好？" href="/q/1010000000355170">nodejs 使用node-mysql 中间件的普通连接与连接池连接哪个好？</a>
                            <small class="text-muted">1 回答</small>
                        </li>
                        <li class="widget-links__item">
                            <a title="node-mysql在查询大数据时，怎么保证不会超时？" href="/q/1010000000455040">node-mysql在查询大数据时，怎么保证不会超时？</a>
                            <small class="text-muted">1 回答</small>
                        </li>
                        <li class="widget-links__item">
                            <a title="node 中的 node-mysql 大家是保持长连接还是短连接？" href="/q/1010000000454504">node 中的 node-mysql 大家是保持长连接还是短连接？</a>
                            <small class="text-muted">3 回答</small>
                        </li>
                        <li class="widget-links__item">
                            <a title="felixge/node-mysql 中.query()函数问题" href="/q/1010000004286883">felixge/node-mysql 中.query()函数问题</a>
                            <small class="text-muted">1 回答 | 已解决</small>
                        </li>
                    </ul>
                </div>

                <div class="widget-share__full" data-url="#" data-shorturl="#">
                    <div style="margin-bottom:10px;">分享扩散：</div>
                    <div class="widget-share-network sharer-0" style="display: block;">
                        <ul class="sn-inline">
                            <li data-network="weibo"><a href="javascript:void(0);" class="entypo-weibo icon-sn-weibo share-1" data-toggle="tooltip" data-placement="top" title="" data-original-title="分享至新浪微博">新浪微博</a></li>
                            <li data-network="wechart"><a href="javascript:void(0);" class="entypo-wechart icon-sn-weixin share-2" data-toggle="tooltip" data-placement="top" title="" data-original-title="分享至微信">微信</a></li>
                            <li data-network="twitter"><a href="javascript:void(0);" class="entypo-twitter icon-sn-twitter share-3" data-toggle="tooltip" data-placement="top" title="" data-original-title="分享至 Twitter">Twitter</a></li>
                            <li data-network="facebook"><a href="javascript:void(0);" class="entypo-facebook icon-sn-facebook share-4" data-toggle="tooltip" data-placement="top" title="" data-original-title="分享至 Facebook">Facebook</a></li>
                        </ul>
                    </div>
                    <a type="button" class="btn btn-sm shareMore btn-sn-more" data-toggle="popover" data-placement="top" data-url="#" data-shorturl="#"><span class="icon-sn-dotted" data-original-title="" title=""></span><strong class="visible-xs-inline">•••</strong></a>
                </div>
 
            </div><!-- /.side -->
        </div>
    </div>
</div>
<script type="text/javascript" src="/luntanshequ/Public/js/jquery-1.7.2.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        // $('.like,.hate').click(function(event) {
        //     if($('#setsession').val() == ''){
        //         if(confirm("请先登录") != false){
        //             location.href = '<?php echo U("home/register/register");?>';
        //         }else{
        //             return false;
        //         }
        //     }
        //     alert($(this).parent().attr('dataid'));
        // });
        //当问题被点赞或者被贬低的时候
        // setsession

        $('#answerIt').click(function(event) {
            if($('#setsession').val() == ''){
                if(confirm("请先登录") != false){
                    location.href = '<?php echo U("home/register/register");?>';
                    return false;
                }else{
                    return false;
                }
            }
        });

        $('#question_cate,#answer_cate').children('button').click(function(event) {
            if($('#setsession').val() == ''){
                if(confirm("请先登录") != false){
                    location.href = '<?php echo U("home/register/register");?>';
                }else{
                    return false;
                }
            }
            var thistype = $(this).parent().attr('clickType');    //判断点击的是问题的点赞还是回答的点赞
            var thisaction = $(this).attr('data-do');             //判断点击的是点赞还是贬低
            var thisques_answerID = $(this).parent('div').attr('dataid'); //得到对应的问题或回答的ID
            var thisobj = $(this);
            // alert("thetype=" + thistype  + ",theaction=" + thisaction);
            // return false;
            $.ajax({
                url: '<?php echo U("home/Blogs/btnClick");?>',
                type: 'POST',
                dataType: 'json',
                data: {thetype:thistype,theaction:thisaction,theid:thisques_answerID},
                success:function(data){
                    if(data.error == 0){
                        thisobj.siblings('span').html(data.vote_num);
                    }else{
                        alert(data.msg);
                    }
                },
                error:function(){

                }
            })
            
        });





    });

</script>











<div class="container text-right mb20 hidden-xs">
    <a href="#" class="feed-link">订阅本页 RSS</a>
</div>

<footer id="footer">
    <div class="container">
        <div class="row hidden-xs">
            <dl class="col-sm-2 site-link">
                <dt>网站相关</dt>
                <dd><a href="#">关于我们</a></dd>
                <dd><a href="#">服务条款</a></dd>
                <dd><a href="#">帮助中心</a></dd>
                <dd><a href="#">声望与权限</a></dd>
                <dd><a href="#">编辑器语法</a></dd>
                <dd><a href="#">每周精选</a></dd>
                <dd><a href="#">App 下载</a></dd>
            </dl>
            <dl class="col-sm-2 site-link">
                <dt>联系合作</dt>
                <dd><a href="#">联系我们</a></dd>
                <dd><a href="#">加入我们</a></dd>
                <dd><a href="#">合作伙伴</a></dd>
                <dd><a href="#">媒体报道</a></dd>
                <dd><a href="#">建议反馈</a></dd>
                <dd><a href="#">Logo 下载</a></dd>
            </dl>
            <dl class="col-sm-2 site-link">
                <dt>常用链接</dt>
                <dd><a href="#">笔记插件: Chrome</a></dd>
                <dd><a href="#">笔记插件: Firefox</a></dd>
                <dd>订阅：<a href="#">问答</a> / <a href="#">文章</a></dd>
                <dd><a href="#">SF 文档镜像</a></dd>
                <dd><a href="#">SF 社区访谈</a></dd>
                <dd><a href="#">技术沙龙 D-DAY</a></dd>
                <dd><a href="#">黑客马拉松 Hackathon</a></dd>
                <dd><a href="#">域名搜索注册</a></dd>
            </dl>
            <dl class="col-sm-2 site-link">
                <dt>关注我们</dt>
                <dd><a href="#">Github</a></dd>
                <dd><a href="#">Twitter</a></dd>
                <dd><a href="#">新浪微博</a></dd>
                <dd><a href="#">SF 团队日志</a></dd>
                <dd><a href="#">产品技术日志</a></dd>
                <dd><a href="#">社区运营日志</a></dd>
                <dd><a href="#">市场运营日志</a></dd>
            </dl>
            <dl class="col-sm-4 site-link" id="license">
                <dt>内容许可</dt>
                <dd>除特别说明外，用户内容均采用 <a rel="license" href="#">知识共享署名-相同方式共享 3.0 中国大陆许可协议</a> 进行许可</dd>
                <dd>本站由 <a href="#">又拍云</a> 提供 CDN 存储服务</dd>
            </dl>
        </div>
        <div class="copyright">
            Copyright &copy; 2011-2016 SegmentFault. 当前呈现版本 16.06.20<br>
            <a href="#" rel="nofollow">浙ICP备 15005796号-2</a> &nbsp;
            <a href="#" rel="nofollow">浙公网安备 33010602002000号</a>
        </div>
        <p class="text-center">
            <a class="js__view--selector hidden-sm hidden-md hidden-lg" data-action="mobile" href="javascript:;">移动版</a>
            <a class="js__view--selector hidden-sm hidden-md hidden-lg" data-action="desktop" href="javascript:;">桌面版</a>
        </p>
    </div>
</footer>

<div id="fixedTools" class="hidden-xs hidden-sm">
    <a id="backtop" class="hidden border-bottom" href="#">回顶部</a>

    <div class="qrcodeWraper">
        <a href="#"><span class="glyphicon glyphicon-qrcode"></span></a>
        <img id="qrcode" class="border" alt="sf-wechat" src="/luntanshequ/Public/home/img/appQrcode.png">
        <p class="qrcode-text">扫扫下载 App</p>
    </div>
</div>


<div class="app-promotion-bar">
    <a href="javascript:;"><i class="fa fa-close close"></i></a>
    <div class="icon"></div>
    <h5 class="title h5">SegmentFault</h5>
    <p class="describe">一起探索更多未知</p>
    <a class="download-btn btn btn-sm btn-primary" href="#">下载 App</a>
</div>

<script>
//     (function (w) {
//         w.SF = {
//             staticUrl: " "
//         };
//         w.SF.token = (function () {
//             var _M6zNg = //'g'
//             'b8'+'ba'//'frf'
//             +//'dJs'
//             '5c'+'748'//'Md'
//             +'c'//'O'
//             +//'3hA'
//             'e89'+'12'//'7J'
//             +//'IY'
//             '78'+''///*'6N'*/'6N'
//             +'3d'//'lQ'
//             +//'cSC'
//             '49'+'42'//'iE'
//             +'a2'//'Za'
//             +//'9w'
//             '6'+'2'//'r'
//             +//'LcL'
//             '7bd'+'1'//'b'
//             +'4'//'9u2'
//             , _mfo0IGi = [];

//             for (var i = 0; i < _mfo0IGi.length; i ++) {
//                 _M6zNg = _M6zNg.substring(0, _mfo0IGi[i][0]) + _M6zNg.substring(_mfo0IGi[i][1]);
//             }

//             return _M6zNg;
//         })();;
//     })(window);
//     var lock = {
//         type: "",
//         text: '',
//         table: {"ban_post":[1,"u4f60u5df2u7ecfu88abu7981u8a00, u65e0u6cd5u8fdbu884cu6b64u64cdu4f5c, u5982u6709u7591u4e49u8bf7u63d0u4ea4u7533u8bc9, u6216u8005u53d1u90aeu4ef6u5230pr@segmentfault.com"]
//     }
// };
</script>
<script type="text/javascript" src="/luntanshequ/Public/home/js/assets.js"></script>
<script type="text/javascript" src="/luntanshequ/Public/home/js/ask.min.js"></script>
<script type="text/javascript" src="/luntanshequ/Public/home/js/index.min.js"></script>